function edit_com(the_id){
		var ajax = new dle_ajax();
		ajax.onShow ("");
		var varsString = "";
		ajax.setVar("com_id", the_id);
		ajax.requestFile = "/include/ajax/edit_comment.php";
		ajax.method = "POST";
		ajax.element = "edit_comment_" + the_id;
		ajax.sendAJAX(varsString);
}
function save(id){
		var ajax = new dle_ajax();
		ajax.onShow ("");
		var varsString = "";
		ajax.setVar("com_id", id);
		ajax.setVar("save", "true");
		ajax.setVar("com_body", document.getElementById("edit_com_body").value);
		ajax.requestFile = "/include/ajax/edit_comment.php";
		ajax.method = "POST";
		ajax.element =  "edit_comment_" + id;
		ajax.sendAJAX(varsString);
}
function exit(id){
		var ajax = new dle_ajax();
		ajax.onShow ("");
		var varsString = "";
		ajax.setVar("com_id", id);
		ajax.setVar("exit", "true");
		ajax.requestFile = "/include/ajax/edit_comment.php";
		ajax.method = "POST";
		ajax.element =  "edit_comment_" + id;
		ajax.sendAJAX(varsString);
}
function delete_comments(the_id, module, idi){
		if (confirm("Вы действительно хотите удалить цепочку комментариев?") == true) {
			var ajax = new dle_ajax();
			ajax.onShow ("");
			var varsString = "";
			ajax.setVar("id", idi);
			ajax.setVar("delete", "true");
			ajax.setVar("module", module);
			ajax.setVar("comment", the_id);
			ajax.requestFile = "/include/ajax/update_comments.php";
			ajax.method = "POST";
			ajax.element =  "comments_div";
			ajax.sendAJAX(varsString);
		}
}
function art_to_mainpage (id){
		var ajax = new dle_ajax();
		ajax.onShow ("");
		var varsString = "";
		ajax.setVar("id", id);
		ajax.requestFile = "/include/ajax/articles/art_to_mainpage.php";
		ajax.method = "GET";
		ajax.element =  "art_to_mainpage_" + id;
		ajax.sendAJAX(varsString);
}